//
//  ByItemViewModel.h
//  jmsfhz_ios
//
//  Created by pro on 16/8/4.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByBaseViewModel.h"

@protocol ByItemQueryDelegate;
@protocol ByItemSendDelegate;

@interface ByItemViewModel : ByBaseViewModel

@property (nonatomic, weak) id<ByItemQueryDelegate> itemDelegate;
@property (nonatomic, weak) id<ByItemSendDelegate> itemSendDelegate;

- (void)itemQuery:(ByNetParamsModel *)params;                   // 查询项目
- (void)itemSend:(ByNetParamsModel *)params;                    // 项目投标

@end


/** 查询项目 */
@protocol ByItemQueryDelegate <NSObject>

- (void)itemQuerySuccess:(ByNetBaseResult *)result;
- (void)itemQueryFailure:(ByNetBaseResult *)result;
@end
/** 项目投标 */
@protocol ByItemSendDelegate <NSObject>

- (void)itemSendSuccess:(ByNetBaseResult *)result;
- (void)itemSendFailure:(ByNetBaseResult *)result;
@end

